package classes.Commands
{
	import components.editor.c_baseElement;
	import flash.filters.BitmapFilter;
	import flash.utils.getQualifiedClassName;

	public class c_applyFilterCommand extends c_baseCommand {
		private var _filter: BitmapFilter;
		public function c_applyFilterCommand(a_element: c_baseElement, a_filter: BitmapFilter) {
			super(a_element);
			_filter = a_filter;
		}
		
		override public function Execute():void {
			super.Execute();
			element.applyFilter(_filter);
		}
		
		
		override public function unExecute():void {
			super.unExecute();
			element.removeFilter(_filter);
		}
	}
}